var temp;
window.onload=function(){
	chrome.extension.sendRequest({info:"blocked"},function(resp)
		{temp=resp.reply;});
	chrome.extension.sendRequest({info:"getstat"},function(resp)
		{document.getElementById("switch").checked=resp.reply;});
document.getElementById("switch").onchange=function(){
chrome.extension.sendRequest({info:"turn",val:this.checked});
}
}
